var page = 1;
$(function() {
	initMenu();
	loadMore(page);
	var $easyzoom = $('.easyzoom').easyZoom();
})

function initMenu() {
	var list = {
		"TuiGirl": "推女郎",
		"youguowang": "尤果网",
		"Mygirl": "Mygirl美媛馆",
		"TGOD": "TGOD推女神",
		"3Agirl": "3Agirl",
		"xiuren": "秀人网",
		"youguowang": "Ugirls尤果网",
		"fengsuniang": "风俗娘 ",
	};
	var html = "";
	for (var item in list) {
		html += "<div field='" + item + "' class='ui button'>" + list[item] + "</div><div class='or'></div>";
	}
	$("#menu").html(html);
}

function loadMore() {
	var url = "http://girls.oschina.mopaas.com/server/api.php";
	ajax(url, "get", {
		"p": page
	}, function(ret) {
		if (ret.status == 1 && ret.data != null) {
			var data = ret.data;
			var html = "";
			for (var item in data) {
				var src = data[item];
				html += "<a class='card' target='_blank' href='" + src + "' ><div class='image'><img src='" + src + "' />" + "</div></a>";
			}
			$("#list").append(html);
			page += 1;
		} else {

		}
	})
}